<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">

    <title>Pages / Register - NiceAdmin Bootstrap Template</title>
    <meta content="" name="description">
    <meta content="" name="keywords">

    <!-- Favicons -->
    <link href="/assets/img/favicon.png" rel="icon">
    <link href="/assets/img/apple-touch-icon.png" rel="apple-touch-icon">

    <!-- Google Fonts -->


    <!-- Vendor CSS Files -->
    <link href="/assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="/assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
    <link href="/assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
    <link href="/assets/vendor/quill/quill.snow.css" rel="stylesheet">
    <link href="/assets/vendor/quill/quill.bubble.css" rel="stylesheet">
    <link href="/assets/vendor/remixicon/remixicon.css" rel="stylesheet">
    <link href="/assets/vendor/simple-datatables/style.css" rel="stylesheet">

    <!-- Template Main CSS File -->
    <link href="/assets/css/style.css" rel="stylesheet">

</head>

<body>

<main>
    <div class="container">

        <section class="section register min-vh-100 d-flex flex-column align-items-center justify-content-center py-4">
            <div class="container">
                <div class="row justify-content-center">
                    <div class="col-lg-4 col-md-6 d-flex flex-column align-items-center justify-content-center">

                        <div class="d-flex justify-content-center py-4">
                        </div><!-- End Logo -->
                        <div class="card mb-3">

                            <div class="card-body">
                                <div th:text="${msg}"></div>
                                <div class="pt-4 pb-2">
                                    <h5 class="card-title text-center pb-0 fs-4">高校竞赛组织管理系统</h5>
                                    <p class="text-center small">创建一个账户</p>
                                </div>

                                <form action="/edge/reg_user" class="row g-3 needs-validation"
                                      enctype="multipart/form-data" method="post"
                                      novalidate>
                                    <div class="col-12">
                                        <label class="form-label" for="image">头像：</label>
                                        <input accept=".jpg,.png" class="form-control" id="image" name="image" required
                                               type="file">
                                        <div class="invalid-feedback">请选择您的头像！</div>
                                    </div>
                                    <div class="col-12">
                                        <label class="form-label" for="yourName">姓名：</label>
                                        <input class="form-control" id="yourName" name="name" required type="text">
                                        <div class="invalid-feedback">请输入您的姓名！</div>
                                    </div>

                                    <div class="col-12">
                                        <label class="form-label" for="yourEmail">邮箱：</label>
                                        <input class="form-control" id="yourEmail" name="email" required type="email">
                                        <div class="invalid-feedback">请输入有效的电子邮件地址！</div>
                                    </div>

                                    <div class="col-12"> <!-- 保持 col-12，但移除了 row 和 mb-3，因为不再需要 -->
                                        <label class="col-md-4 col-lg-3 col-form-label" for="occupation">职业</label>
                                        <div class="col-md-8 col-lg-9">
                                            <div class="form-check form-check-inline">
                                                <input class="form-check-input" id="student"
                                                       name="occupation" type="radio" value="1">
                                                <label class="form-check-label" for="occupationStudent">老师</label>
                                            </div>
                                            <div class="form-check form-check-inline">
                                                <input checked class="form-check-input" id="teacher" name="occupation"
                                                       type="radio" value="2">
                                                <label class="form-check-label" for="occupationTeacher">学生</label>
                                            </div>
                                        </div>
                                    </div>


                                    <div class="col-12">
                                        <label class="form-label" for="yourUsername">用户名：</label>
                                        <div class="input-group has-validation">
                                            <span class="input-group-text" id="inputGroupPrepend">@</span>
                                            <input class="form-control" id="yourUsername" name="userid" required
                                                   type="text">
                                            <div class="invalid-feedback">请选择用户名。</div>
                                        </div>
                                    </div>

                                    <div class="col-12">
                                        <label class="form-label" for="yourPassword">密码</label>
                                        <input class="form-control" id="yourPassword" name="password" required
                                               type="password">
                                        <div class="invalid-feedback">请输入您的密码！</div>
                                    </div>

                                    <div class="col-12">
                                        <div class="form-check">
                                            <input class="form-check-input" id="acceptTerms" name="terms" required
                                                   type="checkbox" value="">
                                            <label class="form-check-label" for="acceptTerms">我同意并接受 <a href="#">条件和条框</a></label>
                                            <div class="invalid-feedback">您必须在提交前同意。</div>
                                        </div>
                                    </div>
                                    <div class="col-12">
                                        <button class="btn btn-primary w-100" type="submit">创建用户</button>
                                    </div>
                                    <div class="col-12">
                                        <p class="small mb-0">已有帐户? <a href="/edge/login">登录</a></p>
                                    </div>
                                </form>

                            </div>
                        </div>

                    </div>

                </div>
            </div>

        </section>

    </div>
</main><!-- End #main -->

<a class="back-to-top d-flex align-items-center justify-content-center" href="#"><i
        class="bi bi-arrow-up-short"></i></a>

<!-- Vendor JS Files -->
<script src="/assets/vendor/apexcharts/apexcharts.min.js"></script>
<script src="/assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="/assets/vendor/chart.js/chart.min.js"></script>
<script src="/assets/vendor/echarts/echarts.min.js"></script>
<script src="/assets/vendor/quill/quill.min.js"></script>
<script src="/assets/vendor/simple-datatables/simple-datatables.js"></script>
<script src="/assets/vendor/tinymce/tinymce.min.js"></script>
<script src="/assets/vendor/php-email-form/validate.js"></script>

<!-- Template Main JS File -->
<script src="/assets/js/main.js"></script>

</body>

</html>